package com.rogue.order.seckill.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 优惠券和订单关系表
 * @author Yeah
 * @TableName hs_coupon_order
 */
@TableName(value ="hs_coupon_order")
@Data
public class HsCouponOrder extends Model<HsCouponOrder> implements Serializable {
    /**
     * id
     */
    @TableId
    private Long id;

    /**
     * 优惠券id
     */
    private Long couponId;

    /**
     * 订单id
     */
    private Long orderId;

    /**
     * 订单编码
     */
    private String orderSn;

    /**
     * 使用时间
     */
    private Date usedTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}